﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.ApplicationModel
{
    /// <summary>
    /// Interface for a Windows Presentation Foundation (WPF) Window.
    /// </summary>
    public interface IWindow
    {
        /// <summary>
        /// Opens a window and returns without waiting for the newly opened window to close.
        /// </summary>
        void Show();

        /// <summary>
        /// Opens a window and returns only when the newly opened window is closed.
        /// </summary>
        /// <returns>A <see cref="Nullable{T}"/> value of type Boolean that specifies whether the activity was accepted (true) or canceled (false). The return value is the value of the DialogResult property before a window closes.</returns>
        bool? ShowDialog();

        /// <summary>
        /// Closes the Window.
        /// </summary>
        void Close();
    }
}
